package com.zjitc.service;

import com.zjitc.model.Category;
import com.zjitc.model.Manage;
import com.zjitc.model.Order;
import com.zjitc.model.Product;
import com.zjitc.model.User;
import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/28 16:50
 * @description:
 */
public interface ManageService {

  Manage manageLoginByMname(String mname);

  Manage manageLogin(String mname, String mpassword);

  List<User> findAllUser(Integer pageNum, Integer count);

  void deleteUser(Integer uid);

  List<Category> findOneProduct(Integer pageNum, Integer count);

  Category findCid(String cid);

  void updateOneProduct(Category category);

  List<Product> findTwoProduct(Integer pageNum, Integer count);

  Product findPid(Integer pid);

  void updateTwoProduct(Product product);

  void deleteTwoProduct(Integer pid);

  List<Order> findOrderList(Integer pageNum, Integer count);
}
